package com.legal.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "ChatHistory", description = "chat对话历史记录的实体")
public class ChatHistory {
    @Schema(description = "用户编号", example = "US20216637")
    private String userNo;

    @Schema(description = "对话类型：test、chat、analysis", example = "chat")
    private String type;

    @Schema(description = "对话id,用于绑定聊天记忆（新建对话就是新建一个chatId）", example = "chat-001", nullable = true)
    private String chatId;

    @Schema(description = "对话title", example = "法律咨询" , nullable = true)
    private String title;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Schema(description = "更新时间", example = "2025-06-20", nullable = true)
    private LocalDateTime updateTime;
}